<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class AlbunmPic extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('album_pic', function (Blueprint $table) {
            $table->increments('apic_id');
            $table->string('apic_name')->comment('图片名称');
            $table->string('apic_tag')->default('')->comment('图片表签');
            $table->integer('aclass_id')->unsigned()->comment('相册id');
            $table->string('apic_cover')->comment('图片路径');
            $table->integer('apic_size')->unsigned()->comment('图片大小');
            $table->integer('store_id')->undigned()->comment('所属店铺id');
            $table->integer('upload_time')->unsigned()->comment('图片上传时间');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('album_pic');
    }
}
